package com.menggudf.service;

import java.util.Map;

import com.menggudf.model.ResultModel;
import com.menggudf.model.SystemAdminModel;

public interface SystemAdminService{

    /**
     * admin下的管理员账户皆有admin生成
     * */
    ResultModel adminRegister(
            String adminName,Short sex,String occupation,
            SystemAdminModel systemAdminModel);

    /**
     * 生成Admin
     * */
    void createAdmin();

    /**
     * 登录
     * */
    ResultModel login(String adminName, String password);

    /**
     * 根据adminCode获取疾病的创建者
     * */
    String getAuthorByAdminCode(String adminCode);

    Map<String, Object> getAdminList(String adminName, int pageSize, int offset);

    ResultModel eidtAdmin(String adminCode, String adminName, Short sex, String occupation);

    ResultModel deleteAdmin(String adminCode);

    ResultModel editPwd(String pwd,String oldPwd, String adminCode);

}
